import { debounce as _debounce } from 'lodash-es'

export function debounce(fn, timeout, context, ...params) {
  return _debounce(fn, timeout).bind(context, ...params)
}
